<template>
  <div>
    <a href="http://www.baidu.com" @click.prevent>超链接</a>

    <div class="box1" @click="f1">
      <div class="box2" @click.stop="f2"></div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    f1() {
      console.log("www");
    },
    f2() {
      console.log("vvv");
    },
  },
};
</script>

<style scoped>
.box2 {
  width: 100px;
  height: 100px;
  background: pink;
}
.box1 {
  padding: 30px;
  background-color: blue;
  float: left;
}
</style>
